# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=zsh-history-substring-search
pkgver=1.0.2
pkgrel=4
pkgdesc="Zsh port of the Fish shell's history search"
url="https://github.com/zsh-users/zsh-history-substring-search"
arch="noarch"
license="BSD-3-Clause"
depends="zsh"
source="https://github.com/zsh-users/zsh-history-substring-search/archive/v$pkgver/$pkgname-$pkgver.tar.gz
	dont-overwrite-config-with-default-values.patch
	fix-zsh-syntax-highlighting-compat.patch
	"
options="!check"  # upstream does not provide tests

package() {
	install -D -m644 *.zsh -t "$pkgdir"/usr/share/zsh/plugins/$pkgname/
}

sha512sums="
9547cdd74f6bd5b102ca29b7b455cd4ce7450fe86864b5a149365de4c37d3da887edb403b195e80c142fe61861a3e4c063a5d8ba08ec0532b27a1207c80a023d  zsh-history-substring-search-1.0.2.tar.gz
7aeafcb05532442fa2e5cce44913fccc73575b5398ad59100c9517fb4bf9e84aafe13847cafdaa28e954655fa064e6f3ba03f9a5f46cb1e8471f6bd41dfd6c1b  dont-overwrite-config-with-default-values.patch
cc8f9e95f05cf39d32a23fb6a073694a16fac6f9352a23d4c5efc13c5fe4698faf4f3282fcecd0b12e1f0db27dc678e26d2121bcdcff6e379d494dfd2a4555b8  fix-zsh-syntax-highlighting-compat.patch
"
